<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html>
<head>
<title>注销会话</title>
</head>
<body>
  <%
      String attribute = (String) session.getAttribute("attr");
      if (attribute != null && !attribute.equals("")) {
          session.setAttribute("attr", null);
          session.invalidate();
          out.print("已注销此会话<br>");
      } else {
          out.print("错误：会话的名称为空<br>");
      }
      out.print("<a href='login.jsp'>点击此处</a>登录");
  %>
</body>
</html>
